import request from '@/utils/request'
export function getRealease(pageNum, pageSize, release_state_id, trade_type) {
    return request({
        url: '/trade/release/getRelease',
        method: 'get',
        params: { pageNum, pageSize, release_state_id, trade_type }
    })
}

export function getTimeSlotInfo(pageNum, pageSize, release_id,) {
    return request({
        url: '/info/user/timeSlot',
        method: 'get',
        params: { release_id, pageNum, pageSize }
    })
}

export function getAllTrade(pageNum, pageSize, default_id) {
    return request({
        url: '/trade/tradeInfo/',
        method: 'get',
        params: { pageNum, pageSize, default_id }
    })
}

export function getTradeDetail(trade_id) {
    return request({
        url: '/trade/tradeInfo/getTradeDetail',
        method: 'get',
        params: { trade_id: trade_id }
    })
}

export function getReportData() {
    return request({
        url: '/trade/tradeInfo/getTimeSlot',
        method: 'get',
    })
}

export function getAllElecMeter() {
    return request({
        url: '/trade/electMeter/getAllElecMeter',
        method: 'get',
    })
}

export function getAllDefault() {
    return request({
        url: '/info/default/getAllDefault',
        method: 'get',
    })
}

export function getUserTradeInfo() {
    return request({
        url: '/info/market/userTradeInfo',
        method: 'get',
    })
}
